// test.java
package hello;
import hello.lib.TVScreen;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
import javax.swing.JFrame;
public class test {
    private  Graphics2D gc1 ;
    
    
    public static void main(String[] args) {
        //BufferedImage img;
        String imgPath = "d:\\test.png";
        File file = new File(imgPath);
        BufferedImage img = new BufferedImage(100,100, BufferedImage.TYPE_INT_RGB);
        TVScreen tt = new TVScreen(10,50,50);
        TVScreen ttt = new TVScreen(1,300,100);
        JFrame fram = new JFrame("test is 啊 窗口");
        try {
         
        
        img = ImageIO.read(file);
            
        } catch (Exception e) {

        }

        fram.add(tt);
        //fram.add(ttt);
        fram.setVisible(true);
        fram.setSize(500,500);
          tt.setPixel(40,10 ,new Color(127,255,30));
       // gc1 = imgPath.
    }
}
